var cols2 = [
    {name: 'id', display: 'id', width: 0, type: 'text', disabled: false},
    {name: 'time', display: '航程', width: 85, type: 'text', disabled: true},
    {name: 'legs', display: '航段', width: 85, type: 'text', disabled: true},
    {name: 'airline', display: '参考航空公司/航班号', width: 155, type: 'text', disabled: true},
    {name: 'type', display: '参考机型', width: 65, type: 'text', disabled: true},
    {name:'space',display:'舱位',width:58,type:'text', disabled: true},
    {name:'stops',display:'经停',width:60,type:'text', disabled: true},
    {name:'airport',display:'参考时间/机场',width:193,type:'text', disabled: true}
];

define(["../../component/newgrid/avalon.newgrid","../../component/panel/avalon.panel","../../component/dialog/avalon.dialog","../../component/textbox/avalon.textbox","../../component/button/avalon.button"], function(){
    var fov = avalon.define({
        $id:"freeorder",
        $gropt1:{
            title_align:"center",
            title:"机票信息",
            cols:cols2,
            loadUrl:'../json/td.airgrid.json',
            checkbox:false,
            singleSelect:true,
            editable:false,
            autoLoad:true,
            pagerbar:false,
            limit:5,
            bar:false
        },
        $panelorderdetail:{
            title:"订单详情",
            iconsrc:"../../component/useimg/icon-detail.png",
            uptool:false, //是否有收起的图标
            redtitle:"*"
        },
        $paneldesc:{
            title:"备忘日志",
            iconsrc:"../../component/useimg/icon-desc.png"
        },
        $panelcontacts:{
            title:"联系人信息",
            iconsrc:"../../component/useimg/icon-people.png"
        },
        $panelschedule:{
            title:"预定信息",
            iconsrc:"../../component/useimg/icon-paper.png"
        },
        $dailogMemorandum:{
            title:"添加备注",
            modal:true,
            width:"700"
            //draggable:true
        },
        $dailogContactorInfo:{
            title:"联系人信息变更",
            width:"700",
            redtitle:"*"
        },

        showWidget: function( id ){
            avalon.vmodels[id].toggle = true;
        }
    });


    return fov;
});